package com.example.springbootvue3.test.comment;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@Data
@ConfigurationProperties(prefix = "app")
public class ConfigurationProperty {
    private String user;
    private String age;
    private String school;

    public static void main(String[] args) {
        ConfigurationProperty a=new ConfigurationProperty();
        a.setUser("heyi");
        System.out.println(a.user);
    }
}
